<template>
	<view>
		<u--form labelPosition="left" :model="levelData"  ref="uForm">
			<u-form-item label="当前级别"  borderBottom ref="item1" labelWidth="200">
				<u--input v-model="levelData.oldLevel" border="none" disabled disabledColor="#ffffff"></u--input>
			</u-form-item>
			<u-form-item label="修改级别"  borderBottom @click=""
				ref="item1" labelWidth="200">
				<u--input v-model="levelData.newLevel"  
				labelWidth="200"
					border="none"></u--input>
				<u-icon slot="right" name="arrow-right"></u-icon>
			</u-form-item>
		</u--form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				custAccId:'',
				levelData:{
					oldLevel:'',
					newLevel:'',
					text:''
					
				}
			};
		},
		onLoad(e){
			this.levelData.oldLevel=e.oldLevel
			this.custAccId=uni.getStorageSync('custAccid')
			this.getWorkLevel()
		},
		// 下拉刷新
		onPullDownRefresh() {
			this.getPullRefresh()
		},
		methods: {
			// 下拉刷新请求数据
			getPullRefresh(){
				console.clear()
				
				this.getWorkLevel()
				
			},
			async getWorkLevel(){
				const res = await uni.$api.work.getWorkLevel({
					custAccId:this.custAccId
				})
				uni.stopPullDownRefresh()
			}
		}
	}
</script>

<style lang="scss">

</style>